CMAKE_MINIMUM_REQUIRED(VERSION 3.17)

ADD_LIBRARY(LibrariesSQLite3 INTERFACE)
ADD_LIBRARY(LIBRARIES::SQLITE3 ALIAS LibrariesSQLite3)

IF (CMAKE_SYSTEM MATCHES "Android")
    TARGET_INCLUDE_DIRECTORIES(LibrariesSQLite3 INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include")
    TARGET_SOURCES(LibrariesSQLite3 INTERFACE
            "${CMAKE_CURRENT_SOURCE_DIR}/src/sqlite3.c")
ENDIF ()
